<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  
  <title>mac下面配置springside4的开发环境 | Wentao&#39;s Blog</title>

  
  <meta name="author" content="wentao">
  

  
  <meta name="description" content="spring是一个很强悍的框架.早已脱离了最早的orm.国内有人做了一个springside的框架,其实就是将spring和一些工具整合起来,做的示例.挺方便的.
前期准备

JDK
MAVEN
eclipse
M2Eclipse
git

由于装了homebrew,所以安装maven很方便
bre">
  

  
  
  <meta name="keywords" content="java,spring">
  

  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <meta property="og:title" content="mac下面配置springside4的开发环境"/>

  <meta property="og:site_name" content="Wentao&#39;s Blog"/>

  
  <meta property="og:image" content="/favicon.ico"/>
  

  <link href="/favicon.ico" rel="icon">
  <link rel="alternate" href="/atom.xml" title="Wentao&#39;s Blog" type="application/atom+xml">
  <link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">
</head>


<body>
<div class="blog">
  <div class="content">

    <header>
  <div class="site-branding">
    <h1 class="site-title">
      <a href="/">Wentao&#39;s Blog</a>
    </h1>
    <p class="site-description"></p>
  </div>
  <nav class="site-navigation">
    <ul>
      
        <li><a href="/">主页</a></li>
      
        <li><a href="/archives">归档</a></li>
      
    </ul>
  </nav>
</header>

    <main class="site-main posts-loop">
    <article>

  
    
    <h3 class="article-title"><span>mac下面配置springside4的开发环境</span></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2012/02/26/config-spring4side-on-mac/" rel="bookmark">
        <time class="entry-date published" datetime="2012-02-26T02:37:00.000Z">
          2012-02-26
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <p>spring是一个很强悍的框架.早已脱离了最早的orm.国内有人做了一个springside的框架,其实就是将spring和一些工具整合起来,做的示例.挺方便的.</p>
<h4>前期准备</h4>
<ul>
<li>JDK</li>
<li>MAVEN</li>
<li>eclipse</li>
<li>M2Eclipse</li>
<li>git</li>
</ul>
<p>由于装了homebrew,所以安装maven很方便<br>
<code>brew install maven</code><br>
同样安装git<br>
<code>brew install git</code><br>
至于eclipse和M2eclipse的安装.就靠自己吧…</p>
<h5>获取代码</h5>
<p>springside4已经迁移到github上面.所以,可以通过如下方式得到最新的代码:<br>
<code>git clone https://github.com/springside/springside4.git</code></p>
<h5>配置环境</h5>
<p>由于使用了maven,此处的环境配置应该很简单.不必为各种jar包冲突所烦恼.安装上m2e以后,就可以将项目导入到eclipse里面了.但是有一个问题,刚导入的项目,由于jar包的缺失.无法通过编译. 此处需要作如下处理<br>
分别进入</p>
<p>&lt;pre&gt;cd modules/core
mvn install
cd ..
cd extension
mvn install
cd ..
cd parent
mvn install
cd ..
cd ..
cd examples/mini-service
mvn install
cd ..
cd mini-web
mvn install
cd ..
cd showcase
mvn install
&lt;/pre&gt;</p>
<p>这样就基本就可以通过编译了.但是在完成以上步骤以后.还是有可能出现如下的几个错误提示</p>
<p>&lt;pre&gt;Project configuration is not up-to-date with pom.xml. Run project configuration update
&lt;/pre&gt;</p>
<p>第一个解决办法使用quick fix.然后就没有问题了.其实就是更新了项目的配置信息.</p>
<p>为什么会有这样的问题,原因是由于m2e和maven之间的配置不一样导致的.可以通过如下两个插件其中任意一个完成.</p>
<ul>
<li><a href="http://mojo.codehaus.org/build-helper-maven-plugin/" target="_blank" rel="external">Build Helper Maven Plugin</a></li>
<li><a href="https://apt-m2e.googlecode.com/" target="_blank" rel="external">apt-m2e</a></li>
</ul>
<p>至此就可以将springside4的开发环境配置完成.</p>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Dev/">Dev</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/java-spring/">java,spring</a>
    </span>
    

    </div>

    
  </div>
</article>

  
	<div id="comment">
	
	
	<!-- 多说评论框 start -->
	 <div class="ds-thread" data-thread-key="/2012/02/26/config-spring4side-on-mac/" data-title="mac下面配置springside4的开发环境" data-url="http://wentao.org/2012/02/26/config-spring4side-on-mac/"></div>
	<!-- 多说评论框 end -->
	<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
	<script type="text/javascript">
	var duoshuoQuery = {short_name:"wentao"};
	  (function() {
	    var ds = document.createElement('script');
	    ds.type = 'text/javascript';ds.async = true;
	    ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
	    ds.charset = 'UTF-8';
	    (document.getElementsByTagName('head')[0] 
	     || document.getElementsByTagName('body')[0]).appendChild(ds);
	  })();
	  </script>
	<!-- 多说公共JS代码 end -->
	
	</div>




    </main>

    <footer class="site-footer">
  <p class="site-info">
    Proudly powered by <a href="https://hexo.io/" target="_blank">Hexo</a> and
    Theme by <a href="https://github.com/CodeDaraW/Hacker" target="_blank">Hacker</a>
    </br>
    
    &copy; 2016 wentao
    
  </p>
</footer>
    
  </div>
</div>
</body>
</html>